#ifndef TYPEDELEGATE_H
#define TYPEDELEGATE_H

#include <QItemDelegate>
#include <QtGui/QStandardItemModel>

class TypeDelegate : public QItemDelegate
{
	Q_OBJECT

public:
	TypeDelegate(QObject *parent = 0);
	~TypeDelegate();

	virtual QWidget * createEditor ( QWidget * parent, const QStyleOptionViewItem & option, const QModelIndex & index ) const;
	virtual void setEditorData ( QWidget * editor, const QModelIndex & index ) const;
	virtual void setModelData ( QWidget * editor, QAbstractItemModel * model, const QModelIndex & index ) const;

private:
	static QStandardItemModel model;
};

#endif // TYPEDELEGATE_H
